package com.woniu.common.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * jp_department
 * @author 
 */
public class JpDepartment implements Serializable {
    /**
     * 科室id
     */
    private Integer id;

    /**
     * 科室名称
     */
    private String departmentName;

    /**
     * 所属医院
     */
    private String hospitalName;

    /**
     * 科室对接人
     */
    private String departmentDocking;

    /**
     * 科室对接人电话
     */
    private String departPhone;

    /**
     * 科室银行卡号
     */
    private String departmentCard;

    /**
     * 科室收益分成
     */
    private Long departmentSharing;

    /**
     * 股东名字
     */
    private String shareholderName;

    /**
     * 1级分销商
     */
    private String distributorOne;

    /**
     * 2级分销商
     */
    private String distributorTwo;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 科室维修人员名字
     */
    private String departmentAccendantname;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getHospitalName() {
        return hospitalName;
    }

    public void setHospitalName(String hospitalName) {
        this.hospitalName = hospitalName;
    }

    public String getDepartmentDocking() {
        return departmentDocking;
    }

    public void setDepartmentDocking(String departmentDocking) {
        this.departmentDocking = departmentDocking;
    }

    public String getDepartPhone() {
        return departPhone;
    }

    public void setDepartPhone(String departPhone) {
        this.departPhone = departPhone;
    }

    public String getDepartmentCard() {
        return departmentCard;
    }

    public void setDepartmentCard(String departmentCard) {
        this.departmentCard = departmentCard;
    }

    public Long getDepartmentSharing() {
        return departmentSharing;
    }

    public void setDepartmentSharing(Long departmentSharing) {
        this.departmentSharing = departmentSharing;
    }

    public String getShareholderName() {
        return shareholderName;
    }

    public void setShareholderName(String shareholderName) {
        this.shareholderName = shareholderName;
    }

    public String getDistributorOne() {
        return distributorOne;
    }

    public void setDistributorOne(String distributorOne) {
        this.distributorOne = distributorOne;
    }

    public String getDistributorTwo() {
        return distributorTwo;
    }

    public void setDistributorTwo(String distributorTwo) {
        this.distributorTwo = distributorTwo;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDepartmentAccendantname() {
        return departmentAccendantname;
    }

    public void setDepartmentAccendantname(String departmentAccendantname) {
        this.departmentAccendantname = departmentAccendantname;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        JpDepartment other = (JpDepartment) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDepartmentName() == null ? other.getDepartmentName() == null : this.getDepartmentName().equals(other.getDepartmentName()))
            && (this.getHospitalName() == null ? other.getHospitalName() == null : this.getHospitalName().equals(other.getHospitalName()))
            && (this.getDepartmentDocking() == null ? other.getDepartmentDocking() == null : this.getDepartmentDocking().equals(other.getDepartmentDocking()))
            && (this.getDepartPhone() == null ? other.getDepartPhone() == null : this.getDepartPhone().equals(other.getDepartPhone()))
            && (this.getDepartmentCard() == null ? other.getDepartmentCard() == null : this.getDepartmentCard().equals(other.getDepartmentCard()))
            && (this.getDepartmentSharing() == null ? other.getDepartmentSharing() == null : this.getDepartmentSharing().equals(other.getDepartmentSharing()))
            && (this.getShareholderName() == null ? other.getShareholderName() == null : this.getShareholderName().equals(other.getShareholderName()))
            && (this.getDistributorOne() == null ? other.getDistributorOne() == null : this.getDistributorOne().equals(other.getDistributorOne()))
            && (this.getDistributorTwo() == null ? other.getDistributorTwo() == null : this.getDistributorTwo().equals(other.getDistributorTwo()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getDepartmentAccendantname() == null ? other.getDepartmentAccendantname() == null : this.getDepartmentAccendantname().equals(other.getDepartmentAccendantname()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDepartmentName() == null) ? 0 : getDepartmentName().hashCode());
        result = prime * result + ((getHospitalName() == null) ? 0 : getHospitalName().hashCode());
        result = prime * result + ((getDepartmentDocking() == null) ? 0 : getDepartmentDocking().hashCode());
        result = prime * result + ((getDepartPhone() == null) ? 0 : getDepartPhone().hashCode());
        result = prime * result + ((getDepartmentCard() == null) ? 0 : getDepartmentCard().hashCode());
        result = prime * result + ((getDepartmentSharing() == null) ? 0 : getDepartmentSharing().hashCode());
        result = prime * result + ((getShareholderName() == null) ? 0 : getShareholderName().hashCode());
        result = prime * result + ((getDistributorOne() == null) ? 0 : getDistributorOne().hashCode());
        result = prime * result + ((getDistributorTwo() == null) ? 0 : getDistributorTwo().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getDepartmentAccendantname() == null) ? 0 : getDepartmentAccendantname().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", departmentName=").append(departmentName);
        sb.append(", hospitalName=").append(hospitalName);
        sb.append(", departmentDocking=").append(departmentDocking);
        sb.append(", departPhone=").append(departPhone);
        sb.append(", departmentCard=").append(departmentCard);
        sb.append(", departmentSharing=").append(departmentSharing);
        sb.append(", shareholderName=").append(shareholderName);
        sb.append(", distributorOne=").append(distributorOne);
        sb.append(", distributorTwo=").append(distributorTwo);
        sb.append(", createTime=").append(createTime);
        sb.append(", departmentAccendantname=").append(departmentAccendantname);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}